<template>
  <h1>组合式语法糖写法</h1>
  <h1>{{ num }}</h1>
  <button @click="add">+1</button>
</template>

<script setup>
import { ref } from "vue"
const num = ref(1);
const add = () => {
  num.value++;
}
</script>